<%--

--%>
<%@taglib prefix="sec"  uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%-- imports --%>
<%@page import="com.dilean.api.dao.AttributeTypeDAO"%>
<%@page import="com.dilean.impl.model.AttributeTypeImpl"%>
<%@page import="com.dilean.api.model.AttributeType"%>
<%@page import="com.dilean.spring.AplicationContextHolder"%>
<%@page import="com.dilean.api.dao.PersonDAO"%>
<%@page import="com.dilean.impl.model.PersonImpl"%>
<%@page import="com.dilean.api.model.Person"%>
<%@page import="com.dilean.api.model.Person"%>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Sign in &middot; Dilean</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link href="resources/mytheme/css/bootstrap.min.css" rel="stylesheet">

        <!-- Custom CSS -->
        <link href="resources/mytheme/css/simple-sidebar.css" rel="stylesheet">


        <link href="resources/mytheme/css/font-awesome.css" rel="stylesheet">

        <link href="resources/mytheme/css/font-awesome.min.css" rel="stylesheet">


        <style>

            .error {
                padding: 15px;
                margin-bottom: 20px;
                border: 1px solid transparent;
                border-radius: 4px;
                color: #a94442;
                background-color: #f2dede;
                border-color: #ebccd1;
            }
            .msg {
                padding: 15px;
                margin-bottom: 20px;
                border: 1px solid transparent;
                border-radius: 4px;
                color: #31708f;
                background-color: #d9edf7;
                border-color: #bce8f1;
            }

            .white{
                color:#000;
                background-color:#fff;
            }

            .btn-facebook {
                color: #ffffff;
                -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
                text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
                background-color: #2b4b90;
                *background-color: #133783;
                background-image: -moz-linear-gradient(top, #3b5998, #133783);
                background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3b5998), to(#133783));
                background-image: -webkit-linear-gradient(top, #3b5998, #133783);
                background-image: -o-linear-gradient(top, #3b5998, #133783);
                background-image: linear-gradient(to bottom, #3b5998, #133783);
                background-repeat: repeat-x;
                border-color: #133783 #133783 #091b40;
                border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3b5998', endColorstr='#ff133783', GradientType=0);
                filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
            }

            .btn-facebook:hover,
            .btn-facebook:focus,
            .btn-facebook:active,
            .btn-facebook.active,
            .btn-facebook.disabled,
            .btn-facebook[disabled] {
                color: #ffffff;
                background-color: #133783 !important;
                *background-color: #102e6d !important;
            }

            .btn-facebook:active,
            .btn-facebook.active {
                background-color: #0d2456 \9 !important;
            }


        </style>
    </head>
    <body>

        <div class="container">
            <div class="row">
                <div class="col-md-4 col-md-offset-4">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title" align = "center"> Login with Username and Password</h3>
                        </div>
                        <div class="panel-body">
                            <form accept-charset="UTF-8" role="form" name='loginForm'
                                  action="myPage.jsp" method='POST'>
                                <fieldset>
                                    <div class="error" align="center">LogIn Failed</div> 
                                    <div class="msg" align="center">Log Out Successfully</div>                                    
                                    <div class="form-group">
                                        <input class="form-control" placeholder="yourmail@example.com" name="email" type="text">
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="Password" name="password" type="password" value="">
                                    </div>
                                    <div class="checkbox">
                                        <label>
                                            <input name="remember" type="checkbox" value="Remember Me"> Remember Me
                                        </label>
                                    </div>
                                    <input class="btn btn-lg btn-success btn-block" type="submit" value="Login">
                                    <br>
                                    <h4 align="center">
                                        <a href="http://localhost:8080/Dilean/register.jsp">I have no account</a>
                                    </h4>
                                </fieldset>
                            </form>


                        </div>
                    </div>
                </div>
            </div>
        </div>

    </body>
</html>